<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: Aws::Iot::MqttClientConnectionConfigBuilder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceAws.html">Aws</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Iot.html">Iot</a></li><li class="navelem"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Aws::Iot::MqttClientConnectionConfigBuilder Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="iot_2MqttClient_8h_source.html">MqttClient.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9421f049699efe5c84e16b8a7d4474e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a9421f049699efe5c84e16b8a7d4474e6">MqttClientConnectionConfigBuilder</a> ()</td></tr>
<tr class="separator:a9421f049699efe5c84e16b8a7d4474e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7008ad6608bc1a8269e3fdd591ca0268"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a7008ad6608bc1a8269e3fdd591ca0268">MqttClientConnectionConfigBuilder</a> (const char *certPath, const char *pkeyPath, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a>) noexcept</td></tr>
<tr class="separator:a7008ad6608bc1a8269e3fdd591ca0268"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b2967c4415a9432d0f0b3b6e9f8082a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a1b2967c4415a9432d0f0b3b6e9f8082a">MqttClientConnectionConfigBuilder</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;cert, const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;pkey, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a>) noexcept</td></tr>
<tr class="separator:a1b2967c4415a9432d0f0b3b6e9f8082a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fd052ff2f36a4c266b53318394e20cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a4fd052ff2f36a4c266b53318394e20cf">MqttClientConnectionConfigBuilder</a> (const <a class="el" href="structAws_1_1Iot_1_1WebsocketConfig.html">WebsocketConfig</a> &amp;config, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a>) noexcept</td></tr>
<tr class="separator:a4fd052ff2f36a4c266b53318394e20cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab759e64586a580a1b817a8c650d0ca5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#ab759e64586a580a1b817a8c650d0ca5b">WithEndpoint</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Crt::String</a> &amp;endpoint)</td></tr>
<tr class="separator:ab759e64586a580a1b817a8c650d0ca5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a8cc096aefcb5aad7d2ba594ae295d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a9a8cc096aefcb5aad7d2ba594ae295d3">WithEndpoint</a> (<a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Crt::String</a> &amp;&amp;endpoint)</td></tr>
<tr class="separator:a9a8cc096aefcb5aad7d2ba594ae295d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85ed43480ed199fb470fe865fa8f536d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a85ed43480ed199fb470fe865fa8f536d">WithPortOverride</a> (uint16_t port) noexcept</td></tr>
<tr class="separator:a85ed43480ed199fb470fe865fa8f536d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa08aff9d13f7526ce94834d01286398e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#aa08aff9d13f7526ce94834d01286398e">WithCertificateAuthority</a> (const char *caPath) noexcept</td></tr>
<tr class="separator:aa08aff9d13f7526ce94834d01286398e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8abcb9c93c53de594ec071f458c098a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a8abcb9c93c53de594ec071f458c098a1">WithCertificateAuthority</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;cert) noexcept</td></tr>
<tr class="separator:a8abcb9c93c53de594ec071f458c098a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a153f716534c161772b6227791d9544ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a153f716534c161772b6227791d9544ec">WithTcpKeepAlive</a> () noexcept</td></tr>
<tr class="separator:a153f716534c161772b6227791d9544ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83bfa937c4a7b16ac795f79ff8c2e008"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a83bfa937c4a7b16ac795f79ff8c2e008">WithTcpConnectTimeout</a> (uint32_t connectTimeoutMs) noexcept</td></tr>
<tr class="separator:a83bfa937c4a7b16ac795f79ff8c2e008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec35f1c7daf9a9e1c9fd735a7af65a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#acec35f1c7daf9a9e1c9fd735a7af65a7">WithTcpKeepAliveTimeout</a> (uint16_t keepAliveTimeoutSecs) noexcept</td></tr>
<tr class="separator:acec35f1c7daf9a9e1c9fd735a7af65a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17656f22da20acb5f8b89a8f388e9ccc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a17656f22da20acb5f8b89a8f388e9ccc">WithTcpKeepAliveInterval</a> (uint16_t keepAliveIntervalSecs) noexcept</td></tr>
<tr class="separator:a17656f22da20acb5f8b89a8f388e9ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa89ca9b11fd06e98415700cee41d0539"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#aa89ca9b11fd06e98415700cee41d0539">WithTcpKeepAliveMaxProbes</a> (uint16_t maxProbes) noexcept</td></tr>
<tr class="separator:aa89ca9b11fd06e98415700cee41d0539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49880efe6d3db29a6d23e85b20ec2bcc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfig.html">MqttClientConnectionConfig</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a49880efe6d3db29a6d23e85b20ec2bcc">Build</a> () noexcept</td></tr>
<tr class="separator:a49880efe6d3db29a6d23e85b20ec2bcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d082bf8f0bca028a869a1f14b004028"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#a0d082bf8f0bca028a869a1f14b004028">operator bool</a> () const noexcept</td></tr>
<tr class="separator:a0d082bf8f0bca028a869a1f14b004028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa312bce48376a994ef873b1b65e92624"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html#aa312bce48376a994ef873b1b65e92624">LastError</a> () const noexcept</td></tr>
<tr class="separator:aa312bce48376a994ef873b1b65e92624"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents configuration parameters for building a <a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfig.html">MqttClientConnectionConfig</a> object. You can use a single instance of this class PER <a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfig.html">MqttClientConnectionConfig</a> you want to generate. If you want to generate a config for a different endpoint or port etc... you need a new instance of this class. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9421f049699efe5c84e16b8a7d4474e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9421f049699efe5c84e16b8a7d4474e6">&#9670;&nbsp;</a></span>MqttClientConnectionConfigBuilder() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Iot::MqttClientConnectionConfigBuilder::MqttClientConnectionConfigBuilder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7008ad6608bc1a8269e3fdd591ca0268"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7008ad6608bc1a8269e3fdd591ca0268">&#9670;&nbsp;</a></span>MqttClientConnectionConfigBuilder() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Iot::MqttClientConnectionConfigBuilder::MqttClientConnectionConfigBuilder </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>certPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pkeyPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the builder up for MTLS using certPath and pkeyPath. These are files on disk and must be in the PEM format. </p>

</div>
</div>
<a id="a1b2967c4415a9432d0f0b3b6e9f8082a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b2967c4415a9432d0f0b3b6e9f8082a">&#9670;&nbsp;</a></span>MqttClientConnectionConfigBuilder() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Iot::MqttClientConnectionConfigBuilder::MqttClientConnectionConfigBuilder </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>cert</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>pkey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the builder up for MTLS using cert and pkey. These are in-memory buffers and must be in the PEM format. </p>

</div>
</div>
<a id="a4fd052ff2f36a4c266b53318394e20cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fd052ff2f36a4c266b53318394e20cf">&#9670;&nbsp;</a></span>MqttClientConnectionConfigBuilder() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Iot::MqttClientConnectionConfigBuilder::MqttClientConnectionConfigBuilder </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structAws_1_1Iot_1_1WebsocketConfig.html">WebsocketConfig</a> &amp;&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Crt::Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">Crt::g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the builder up for Websocket connection. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a49880efe6d3db29a6d23e85b20ec2bcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49880efe6d3db29a6d23e85b20ec2bcc">&#9670;&nbsp;</a></span>Build()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfig.html">MqttClientConnectionConfig</a> Aws::Iot::MqttClientConnectionConfigBuilder::Build </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Builds a client configuration object from the set options. </p>

</div>
</div>
<a id="aa312bce48376a994ef873b1b65e92624"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa312bce48376a994ef873b1b65e92624">&#9670;&nbsp;</a></span>LastError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Aws::Iot::MqttClientConnectionConfigBuilder::LastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the value of the last aws error encountered by operations on this instance. </dd></dl>

</div>
</div>
<a id="a0d082bf8f0bca028a869a1f14b004028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d082bf8f0bca028a869a1f14b004028">&#9670;&nbsp;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Iot::MqttClientConnectionConfigBuilder::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the instance is in a valid state, false otherwise. </dd></dl>

</div>
</div>
<a id="aa08aff9d13f7526ce94834d01286398e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa08aff9d13f7526ce94834d01286398e">&#9670;&nbsp;</a></span>WithCertificateAuthority() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithCertificateAuthority </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>caPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the certificate authority for the endpoint you're connecting to. This is a path to a file on disk and must be in PEM format. </p>

</div>
</div>
<a id="a8abcb9c93c53de594ec071f458c098a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8abcb9c93c53de594ec071f458c098a1">&#9670;&nbsp;</a></span>WithCertificateAuthority() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithCertificateAuthority </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Crt::ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>cert</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the certificate authority for the endpoint you're connecting to. This is an in-memory buffer and must be in PEM format. </p>

</div>
</div>
<a id="ab759e64586a580a1b817a8c650d0ca5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab759e64586a580a1b817a8c650d0ca5b">&#9670;&nbsp;</a></span>WithEndpoint() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithEndpoint </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Crt::String</a> &amp;&#160;</td>
          <td class="paramname"><em>endpoint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets endpoint to connect to. </p>

</div>
</div>
<a id="a9a8cc096aefcb5aad7d2ba594ae295d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a8cc096aefcb5aad7d2ba594ae295d3">&#9670;&nbsp;</a></span>WithEndpoint() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithEndpoint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Crt::String</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>endpoint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets endpoint to connect to. </p>

</div>
</div>
<a id="a85ed43480ed199fb470fe865fa8f536d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85ed43480ed199fb470fe865fa8f536d">&#9670;&nbsp;</a></span>WithPortOverride()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithPortOverride </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Overrides the default port. By default, if ALPN is supported, 443 will be used. Otherwise 8883 will be used. If you specify 443 and ALPN is not supported, we will still attempt to connect over 443 without ALPN. </p>

</div>
</div>
<a id="a83bfa937c4a7b16ac795f79ff8c2e008"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83bfa937c4a7b16ac795f79ff8c2e008">&#9670;&nbsp;</a></span>WithTcpConnectTimeout()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithTcpConnectTimeout </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>connectTimeoutMs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TCP option: Sets the connect timeout. Defaults to 3 seconds. </p>

</div>
</div>
<a id="a153f716534c161772b6227791d9544ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a153f716534c161772b6227791d9544ec">&#9670;&nbsp;</a></span>WithTcpKeepAlive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithTcpKeepAlive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TCP option: Enables TCP keep alive. Defaults to off. </p>

</div>
</div>
<a id="a17656f22da20acb5f8b89a8f388e9ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17656f22da20acb5f8b89a8f388e9ccc">&#9670;&nbsp;</a></span>WithTcpKeepAliveInterval()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithTcpKeepAliveInterval </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>keepAliveIntervalSecs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TCP option: Sets the frequency of sending keep alive probes in seconds once the keep alive timeout expires. Defaults to kernel defaults. </p>

</div>
</div>
<a id="aa89ca9b11fd06e98415700cee41d0539"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa89ca9b11fd06e98415700cee41d0539">&#9670;&nbsp;</a></span>WithTcpKeepAliveMaxProbes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithTcpKeepAliveMaxProbes </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>maxProbes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TCP option: Sets the amount of keep alive probes allowed to fail before the connection is terminated. Defaults to kernel defaults. </p>

</div>
</div>
<a id="acec35f1c7daf9a9e1c9fd735a7af65a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acec35f1c7daf9a9e1c9fd735a7af65a7">&#9670;&nbsp;</a></span>WithTcpKeepAliveTimeout()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Iot_1_1MqttClientConnectionConfigBuilder.html">MqttClientConnectionConfigBuilder</a> &amp; Aws::Iot::MqttClientConnectionConfigBuilder::WithTcpKeepAliveTimeout </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>keepAliveTimeoutSecs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TCP option: Sets time before keep alive probes are sent. Defaults to kernel defaults </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/iot/<a class="el" href="iot_2MqttClient_8h_source.html">MqttClient.h</a></li>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/source/iot/<a class="el" href="iot_2MqttClient_8cpp.html">MqttClient.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
